#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
#include <assert.h>
//size_t my_strlen(char* x) {
//	size_t count = 0;
//	while (*x != '\0') {
//		count++;
//		x++;
//	}
//	return count;
//}
size_t my_strlen(const char* p) {
	assert(p != NULL);
	char* star = p;
	char* end = p;
	while (*end != '\0') {
		end++;
	}
	return end - star;
}
int main() {
	char num[] = "abcdef";
	size_t len = my_strlen(num);
	printf("%zd ", len);
	return 0;
}